package com.demo.service.auth;

import com.demo.dao.auth.entity.*;

import java.util.List;

public interface AuthUserInfoService {
    //菜单根
    public List<AuthMenuTreeNode> buildMenuRoot(List<AuthMenuNode> menuList);

    //构建菜单子树
    public AuthMenuTreeNode buildMenuChildren(List<AuthMenuNode> menuList, AuthMenuTreeNode rootNode);

    //构建菜单树
    public List<AuthMenuTreeNode> buildMenuTree(List<AuthMenuNode> menuList);

    //检索组件是否在权限内
    public List<AuthMenuNode> filterMenu(List<AuthMenuNode>menuList, List<AuthPermissionNode> permissionList);

    //根据账号和密码返回token,user对象，权限菜单
    public AuthUserMenu getUser(AuthLoginNode login);

    //根据账号和密码返回user对象，权限菜单
    public  AuthSearchMenu getMenu(AuthLoginNode login);
}
